package com.xx.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 员工登录表
 * </p>
 *
 * @author myx
 * @since 2024-12-09
 */
@Getter
@Setter
@ToString
@TableName("employees")
public class Employees extends BaseEntity {

    @Version
    /**
     * 员工Id
     */
    @TableId(value = "employee_id", type = IdType.AUTO)
    private Integer employeeId;

    /**
     * 登录名
     */
    @TableField("login_name")
    private String loginName;

    /**
     * 用户名
     */
    @TableField("emp_name")
    private String empName;

    /**
     * 登录密码
     */
    @TableField("password")
    private String password;

    /**
     * 职位
     */
    @TableField("position")
    private String position;

    /**
     * 邮箱
     */
    @TableField("email")
    private String email;

    /**
     * 联系电话
     */
    @TableField("phone_number")
    private String phoneNumber;

    /**
     * 工资
     */
    @TableField("salary")
    private BigDecimal salary;

    @TableField("version")
    private Integer version;
}
